import { request, METHOD } from '@/utils/request';

// 获取故障基础信息列表
export const getListByParamApi = (params) => {
  return request('/ftm/ftmFault/getListByParam', METHOD.POST, params);
};

// 新增故障基础信息
export const addFaultApi = (params) => {
  return request('/ftm/ftmFault/addFault', METHOD.POST, params);
};

// 删除故障基础信息
export const deleteRepUplinkDestinationApi = ({ id }) => {
  return request(`/ftm/ftmFault/delete/${id}`, METHOD.POST);
};

// 修改故障基础信息
export const updateFaulApi = (params) => {
  return request('/ftm/ftmFault/update', METHOD.POST, params);
};

